<?php
namespace Preorder\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $this->display('index');
    }
    
    public function save(){
        $model = M('Preorder');
        $data = $model->create();
        if($data){
            $model->add();
            $this->success("保存成功！");
        }else{
            $this->error("不能重复递交表单");
        }
    }
}